
<?php $pl = $this->postListVars[$this->postListLevel]; ?>

<?php
	if ($pl->submitTopFormVisible) {
		echo $this->render('comment-form.phtml');
	}
?>
<?php
	if ($this->postSublist) {
		$imgDims = 'width="32" height="32"';
		$liClass = 'mg_vt_ems';
	} else {
		$imgDims = 'width="48" height="48"';
		$liClass = 'mg_vt_emm';
	}
?>


<?php if ($pl->postCount > 0): ?>
<ol class="cl">

<?php foreach ($pl->postList as $p): ?>
  <li class="<?php echo $liClass; ?>">
  <div class="post-entry">
    <div class="post-author">
      <a href="<?php echo $p->creatorUrl; ?>"><img src="<?php echo $p->creatorAvatarUrl; ?>" alt="<?php echo $p->creatorName; ?>" <?php echo $imgDims; ?> /></a>
    </div>
    <div class="post-content">
    <small>#<?php echo $p->number; ?>
 &bull; <strong><a href="<?php echo $p->creatorUrl; ?>"><?php echo $p->creatorName; ?></a></strong>
 &bull; <?php echo $this->relTimeString($p->time); ?>
<?php if ($p->hostLinkVisible === TRUE): ?>
 &bull; <a href="<?php echo $p->hostUrl; ?>">Responded item</a>
<?php endif; ?>
<?php if ($p->editLinkUrl): ?>
 &bull; <a href="<?php echo $p->editLinkUrl; ?>">Edit</a>
<?php endif; ?>
<?php if ($p->deleteLinkUrl): ?>
 &bull; <a href="<?php echo $p->deleteLinkUrl; ?>">Delete</a>
<?php endif; ?>
	</small>
    <div class="post-body"><?php echo $p->content; ?></div>
    </div>
    <div class="clear"></div>
  </div>
  </li>
<?php endforeach; ?>

</ol>
<?php endif; ?>


<?php
	if ($pl->submitBottomFormVisible) {
		echo $this->render('comment-form.phtml');
	}
?>

<?php if ($this->postListLevel < 2): ?>

<div class="block box_1 shade_1 pd_s">
<?php if ($pl->postCount > 0): ?>
<?php if ($pl->postListPagePrevUrl): ?>
<a href="<?php echo $pl->postListPagePrevUrl; ?>">&laquo; Previous</a> &bull;
<?php endif; ?>
Responses <strong><?php echo $pl->postListFirst; ?> - <?php echo $pl->postListLast; ?></strong> of <strong><?php echo $pl->postCountTotal; ?></strong>
<?php if ($pl->postListPageNextUrl): ?>
 &bull; <a href="<?php echo $pl->postListPageNextUrl; ?>">Next &raquo;</a>
<?php endif; ?>
<?php else: ?>
No responses yet
<?php endif; ?>
</div>

<?php endif; ?>

